/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Entitys;

import java.util.List;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 *
 * @author Administrador
 */
@Entity
public class MovieAndActor {
    @Id
    private int Id;
    @ManyToOne
    @JoinColumn(name="MOVIE_ID")
    private Movie movie;
    @ManyToOne
    @JoinColumn(name="ACTOR_ID")
    private Actor actor;
}
